/**
 * Generate code from /{{projectName}}-core/src/main/java/{{packageName}}/{{apis}}/dto/{{apiDtos@DEFAULT}}.java.hbs
 */
package cn.ibizlab.api.dto;

import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.*;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 统一认证/外部认证[AuthProviderDTO]
 *
 * @author generator
 */
@Getter
@Setter
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("统一认证/外部认证DTO")
public class AuthProviderDTO extends DTOBase implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 应用标识
     */
    @JsonProperty("id")
    @JSONField(name = "id")
    @ApiModelProperty(value = "应用标识", position = 0)
    private String id;

    /**
     * 应用名称
     */
    @JsonProperty("name")
    @JSONField(name = "name")
    @ApiModelProperty(value = "应用名称", position = 1)
    private String name;

    /**
     * dc
     */
    @JsonProperty("dc")
    @JSONField(name = "dc")
    @ApiModelProperty(value = "dc", position = 2)
    private String dc;

    /**
     * 认证地址
     */
    @JsonProperty("authentication_uri")
    @JSONField(name = "authentication_uri")
    @ApiModelProperty(value = "认证地址", position = 3)
    private String authenticationUri;

    /**
     * 认证方式
     */
    @JsonProperty("authentication_method")
    @JSONField(name = "authentication_method")
    @ApiModelProperty(value = "认证方式", position = 4)
    private String authenticationMethod;

    /**
     * 认证基础配置
     */
    @JsonProperty("base_config")
    @JSONField(name = "base_config")
    @ApiModelProperty(value = "认证基础配置", position = 5)
    private String baseConfig;

    /**
     * 响应类型
     */
    @JsonProperty("response_type")
    @JSONField(name = "response_type")
    @ApiModelProperty(value = "响应类型", position = 6)
    private String responseType;

    /**
     * 响应成功标记
     */
    @JsonProperty("response_success_flag")
    @JSONField(name = "response_success_flag")
    @ApiModelProperty(value = "响应成功标记", position = 7)
    private String responseSuccessFlag;

    /**
     * 认证响应配置
     */
    @JsonProperty("response_config")
    @JSONField(name = "response_config")
    @ApiModelProperty(value = "认证响应配置", position = 8)
    private String responseConfig;

    /**
     * 排序
     */
    @JsonProperty("sort")
    @JSONField(name = "sort")
    @ApiModelProperty(value = "排序", position = 9)
    private Integer sort;

    /**
     * 认证类型
     */
    @JsonProperty("authentication_type")
    @JSONField(name = "authentication_type")
    @ApiModelProperty(value = "认证类型", position = 10)
    private String authenticationType;

    /**
     * 创建时间
     */
    @JsonProperty("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "create_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", position = 11)
    private Date createTime;

    /**
     * 创建人
     */
    @JsonProperty("creator")
    @JSONField(name = "creator")
    @ApiModelProperty(value = "创建人", position = 12)
    private String creator;

    /**
     * 最后更新时间
     */
    @JsonProperty("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    @JSONField(name = "update_time" , format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后更新时间", position = 13)
    private Date updateTime;

    /**
     * 最后更新人
     */
    @JsonProperty("updater")
    @JSONField(name = "updater")
    @ApiModelProperty(value = "最后更新人", position = 14)
    private String updater;

    /**
     * 是否禁用
     */
    @JsonProperty("disabled")
    @JSONField(name = "disabled")
    @ApiModelProperty(value = "是否禁用", position = 15)
    private Integer disabled;


    /**
     * 设置 [应用名称]
     */
    public AuthProviderDTO setName(String name) {
        this.name = name;
        this.modify("name", name);
        return this;
    }

    /**
     * 设置 [dc]
     */
    public AuthProviderDTO setDc(String dc) {
        this.dc = dc;
        this.modify("dc", dc);
        return this;
    }

    /**
     * 设置 [认证地址]
     */
    public AuthProviderDTO setAuthenticationUri(String authenticationUri) {
        this.authenticationUri = authenticationUri;
        this.modify("authentication_uri", authenticationUri);
        return this;
    }

    /**
     * 设置 [认证方式]
     */
    public AuthProviderDTO setAuthenticationMethod(String authenticationMethod) {
        this.authenticationMethod = authenticationMethod;
        this.modify("authentication_method", authenticationMethod);
        return this;
    }

    /**
     * 设置 [认证基础配置]
     */
    public AuthProviderDTO setBaseConfig(String baseConfig) {
        this.baseConfig = baseConfig;
        this.modify("base_config", baseConfig);
        return this;
    }

    /**
     * 设置 [响应类型]
     */
    public AuthProviderDTO setResponseType(String responseType) {
        this.responseType = responseType;
        this.modify("response_type", responseType);
        return this;
    }

    /**
     * 设置 [响应成功标记]
     */
    public AuthProviderDTO setResponseSuccessFlag(String responseSuccessFlag) {
        this.responseSuccessFlag = responseSuccessFlag;
        this.modify("response_success_flag", responseSuccessFlag);
        return this;
    }

    /**
     * 设置 [认证响应配置]
     */
    public AuthProviderDTO setResponseConfig(String responseConfig) {
        this.responseConfig = responseConfig;
        this.modify("response_config", responseConfig);
        return this;
    }

    /**
     * 设置 [排序]
     */
    public AuthProviderDTO setSort(Integer sort) {
        this.sort = sort;
        this.modify("sort", sort);
        return this;
    }

    /**
     * 设置 [认证类型]
     */
    public AuthProviderDTO setAuthenticationType(String authenticationType) {
        this.authenticationType = authenticationType;
        this.modify("authentication_type", authenticationType);
        return this;
    }

    /**
     * 设置 [是否禁用]
     */
    public AuthProviderDTO setDisabled(Integer disabled) {
        this.disabled = disabled;
        this.modify("disabled", disabled);
        return this;
    }


}
